Component({

  properties: {
    item: {
      type: Object,
      value: {},
      observer(newVal, oldVal, changedPath) {
        console.log(newVal);
        console.log(oldVal);
        console.log(changedPath);
        if (this.data.item.url && this.data.item.url.indexOf("v.qq.com") >= 0)
        {
          this.getTrueUrl();
        }
        else
        {
          this.setData({ url: this.data.item.url });
        }
        
      }
    },
    video:Boolean
  },

  data: {
    url:""
  },

  methods: {

    getTrueUrl: function () {
      var that = this;
      getApp().core.get('txvideo/url', {
        url: this.data.item.url
      }, function (t) {
        console.log("ttttt is :");
        console.log(t)
        that.setData({ url: t.info });
      }, true)

    }

  }

})